Deletes an existing directory from a data medium.
データ記録媒体上にある既存ディレクトリを削除します。
RmDir Text As String
RmDir Text As String
Text: Any string expression that specifies the name and path of the directory that you want to delete. You can also use URL notation.
Text: 削除するディレクトリの名前およびパスを指定する文字列表式。またURL 指定を用いることもできます。
If the path is not determined, the RmDir Statement searches for the directory that you want to delete in the current path. If it is not found there, an error message appears.
有効なパスが指定されなかった場合、RmDir ステートメント は、現在のパスの中で該当ディレクトリを検索します。該当するものが確認されないと、エラーメッセージが表示されます。
Sub ExampleRmDir
Sub ExampleRmDir
MkDir "C:\Test2"
MkDir "C:\Test2"
ChDir "C:\test2"
ChDir "C:\test2"
msgbox Curdir
msgbox Curdir
ChDir "\"
ChDir "\"
RmDir "C:\test2"
RmDir "C:\test2"
end sub
end sub